<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String msg = (String)request.getAttribute("msg");
%>

<!DOCTYPE HTML>
<html>
<head>
 		<base href="<%=basePath%>">
 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 		<script type="text/javascript" src="lib/jquery/1.9.1/jquery.js"></script>
 		<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
</head>
<body>
	<form action="productType.html" method="Post">
		<c:if test="${productType==null}">
		add<input type="hidden" value="add" name="option"/>
		</c:if>
		<c:if test="${productType!=null}">
		update<input type="hidden" value="update" name="option"/>
		<input type="hidden" value="${productType.productTypeId}" name="productTypeId"/>
		</c:if>
		productTypeName:<input type="text" name="productTypeName" value="${productType.procuctTypeName}"/>
		sort:<input type="number" name="sort" value="${productType.sort}"/>
		<input type="submit" value="submit"/>
	</form>
</body>
<script type="text/javascript">
	var msg="<%=msg%>";
	if(msg!="null"){
		layer.msg(msg,{icon:2,time:2000})
	}
</script>
</html>